/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.giant.services.parametrics;

import com.giant.entities.InYear;
import com.giant.services.IServicioPersistenciaLocal;
import java.util.List;
import javax.ejb.EJB;
import javax.ejb.Stateless;

/**
 *
 * @author Harold
 */
@Stateless
public class ServiceYear implements ServiceYearLocal {

    //-----------------------------------------------------------
    // Atributos
    //-----------------------------------------------------------
    /**
     * Interface con referencia al servicio de persistencia en el sistema
     */
    @EJB
    private IServicioPersistenciaLocal persistencia;

    @Override
    public List<InYear> getYears() {

        return persistencia.findAll(InYear.class);
    }
}
